
public class ColumnNode extends Node {

	private char name;
	
	public ColumnNode(char name) {
		this.name = name;
	}
	
	public char getName() {
		return name;
	}

	public void setName(char name) {
		this.name = name;
	}

	@Override
	public Node getColumn() {
		return this;
	}
	
	public int size() {
		Node n = this;
		int i = 0;
		while (n.getDown() != this) {
			if (n.getChiffre() != 0) i++;
			n = n.getDown();
		}
		
		return i;
	}
}
